package com.banana.manager.forest.entity.handle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;

@TableName("phd_info")
@Getter
@Setter
@NoArgsConstructor
@ToString
public class PhdBean {

    @TableId(value = "phd_id",type = IdType.AUTO)
    private Integer phdId;

    @TableField("phd_name")
    private String phdName;
    @TableField("phd_date")
    private LocalDate phdDate;
    @TableField("phd_type")
    private String phdType;
    @TableField("phd_phone")
    private String phdPhone;
    @TableField("phd_location")
    private String phdLocation;
    @TableField("phd_gender")
    private String phdGender;
    @TableField("phd_photo")
    private String phdPhoto;
    @TableField("phd_title")
    private String phdTitle;
    @TableField("phd_department")
    private String phdDepartment;
    @TableField("phd_email")
    private String phdEmail;

    public PhdBean(String phdName, LocalDate phdDate, String phdType, String phdPhone, String phdLocation, String phdGender, String phdPhoto, String phdTitle, String phdDepartment, String phdEmail) {
        this.phdName = phdName;
        this.phdDate = phdDate;
        this.phdType = phdType;
        this.phdPhone = phdPhone;
        this.phdLocation = phdLocation;
        this.phdGender = phdGender;
        this.phdPhoto = phdPhoto;
        this.phdTitle = phdTitle;
        this.phdDepartment = phdDepartment;
        this.phdEmail = phdEmail;
    }
}
